//
//  JWUserModel.m
//  见闻新闻
//
//  Created by brother on 16/3/14.
//  Copyright © 2016年 JoanBoat. All rights reserved.
//

#import "JWUserModel.h"

@implementation JWUserModel


-(instancetype)initWithDict:(NSDictionary *)dic{
    if (self = [super init]) {
        [self setValuesForKeysWithDictionary:dic];
    }
    return self;
}


+(JWUserModel *)userModel {

    NSUserDefaults *UserDefaults = [NSUserDefaults standardUserDefaults];
    
    NSDictionary *tempDic = [UserDefaults objectForKey:UserInfo];
    
    JWUserModel *userModel = [JWUserModel mj_objectWithKeyValues:tempDic];
    
    return userModel;
}



//MJCodingImplementation

@end
